import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/suppliers_entity.dart';
import 'package:library_base/entities/warehouse_entity.dart';


WarehouseEntity $WarehouseEntityFromJson(Map<String, dynamic> json) {

	final WarehouseEntity warehouseEntity = WarehouseEntity();

	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		warehouseEntity.id = id;
	}
	final String? provinceId = jsonConvert.convert<String>(json['provinceId']);
	if (provinceId != null) {
		warehouseEntity.provinceId = provinceId;
	}
	final String? cityId = jsonConvert.convert<String>(json['cityId']);
	if (cityId != null) {
		warehouseEntity.cityId = cityId;
	}
	final String? areaId = jsonConvert.convert<String>(json['areaId']);
	if (areaId != null) {
		warehouseEntity.areaId = areaId;
	}
	final String? villageId = jsonConvert.convert<String>(json['villageId']);
	if (villageId != null) {
		warehouseEntity.villageId = villageId;
	}
	final String? addr = jsonConvert.convert<String>(json['addr']);
	if (addr != null) {
		warehouseEntity.addr = addr;
	}
	final String? whCode = jsonConvert.convert<String>(json['whCode']);
	if (whCode != null) {
		warehouseEntity.whCode = whCode;
	}
	final String? whName = jsonConvert.convert<String>(json['whName']);
	if (whName != null) {
		warehouseEntity.whName = whName;
	}
	final String? contact = jsonConvert.convert<String>(json['contact']);
	if (contact != null) {
		warehouseEntity.contact = contact;
	}
	final String? mobile = jsonConvert.convert<String>(json['mobile']);
	if (mobile != null) {
		warehouseEntity.mobile = mobile;
	}
	return warehouseEntity;
}

Map<String, dynamic> $WarehouseEntityToJson(WarehouseEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['provinceId'] = entity.provinceId;
	data['cityId'] = entity.cityId;
	data['areaId'] = entity.areaId;
	data['villageId'] = entity.villageId;
	data['addr'] = entity.addr;
	data['whCode'] = entity.whCode;
	data['whName'] = entity.whName;
	data['contact'] = entity.contact;
	data['mobile'] = entity.mobile;
	return data;
}